package com.tang.websocket.v1.handler;

import com.tang.websocket.v1.session.WebSocketSession;

/**
 * @author Tang
 * @classname AuthenticationWebSocketHandlerDecorator
 * @description [ 鉴权的包装 ]
 * @date 2022/12/1 14:29
 */
public class AuthenticationWebSocketHandlerDecorator extends WebsocketHandlerDecorator {

    public AuthenticationWebSocketHandlerDecorator(WebSocketHandler webSocketHandler) {
        super(webSocketHandler);
    }

    @Override
    public void onOpen(WebSocketSession webSocketSession) {
        // todo 鉴权逻辑
        super.onOpen(webSocketSession);
    }
}
